<?php
$geral = "";
require_once("conexao.php");
$query = "SELECT * FROM link ORDER BY nome;";
$rows = mysql_query($query);
while ($rs = mysql_fetch_array($rows)) {
    $site = $rs['site'];
    $nome = $rs['nome'];
    $link = $rs['link'];
    $geral .= "<div class='quadre' id='$link' onclick='editarLink(this.id)' draggable='true'> ";
//    $geral .="<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='40' style='width: 40px;' >";
//    $geral .="<polygon points='20,0 35,5 40,20 35,35 20,40 5,35 0,20 5,5 20,0 35,35 0,20 35,5 20,40 5,5 40,20 5,35'";
//    $geral .="style='fill:gray;stroke:blue;stroke-width:.5;fill-rule:evenodd;'></svg>";
    $geral .= "<a href='$site'>$nome</a></div>";
}
mysql_close();
echo $geral;
?>
